<?php

namespace app\admin\controller;

use think\Controller;
use think\Request;
use think\Db;

class Messages extends Controller
{
    public function del(){
        $id = input('id');
        $res = db('messages')->delete(['id' => $id]);
        if($res){
            $this->success('删除评论成功',url('article/lst'));
        }else{
            $this->error('删除评论失败');
        }
    }
}
